package com.lhd.study.server;

import com.lhd.study.entiy.NewsListEntiy;
import com.lhd.study.entiy.TitleListEntiy;
import com.lhd.study.mapper.TitleListMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TitleListServer {

    @Autowired
    private TitleListMapper mapper;

    public List<TitleListEntiy> getTitleList() {
        return mapper.Sel();
    }

    public List<NewsListEntiy> getNewsList(int id){
        return mapper.getNews(id);
    }

}
